package com.chengwang.bookstory.service;

import com.chengwang.bookstory.pojo.Book;
import com.chengwang.bookstory.pojo.BookUpload;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
@Service
public interface BookService {
    List<Book> queryByBookType(String bookType);

    List<Book> queryByBookName(String searchMessage);

    List<Book> queryByAnyType(String searchMessage);

    List<Book> queryAllBook();

    Book queryBookById(String bookId);

    void updateBook(Book book);

    void upload(BookUpload bookUpload, HttpServletRequest request);

    List<Book> queryBookByBookName(String bookName);
}
